package FIT::eg::Fixture::Employees;

use FIT::Class;

extends 'FIT::Fixture::Row';

has [qw(first_name last_name title phone)] => (is => 'rw', isa => 'Str');

sub query {
   return (
        eg_Employee->new(
            first_name => 'Homer',
            last_name  => 'Simpson',
            title      => 'Sales Engineer',
            phone      => 123,
        ),
        eg_Employee->new(
            first_name => 'Marge',
            last_name  => 'Simpson',
            title      => 'QA Engineer',
            phone      => 456,
        ),
        eg_Employee->new(
            first_name => 'Bart',
            last_name  => 'Simpson',
            title      => 'Jester',
            phone      => 123,
        ),
        eg_Employee->new(
            first_name => 'Maggie',
            last_name  => 'Simpson',
            title      => 'Software Engineer',
            phone      => 789,
        ),
    ); 
}

package eg_Employee;
use FIT::Util::Autoload;
sub new { bless { @_ }, $self }
sub autoload { $self->{shift()} }


